﻿namespace Org.Flowertwig.Media.Services.LocalService
{
    public class DiskImageHandler
    {
        /***********************
         * We should make this handler like the ArchiveHandler.
         * A program that should work is "MagicISO Virtual CD/DVD Manager".
         * 
         * Below information comes from: http://www.magiciso.com/tutorials/miso-mount-iso-image.htm?=mdisc_hlp106
         * First, You need to install MagicDisc Virtual CD/DVD-ROM. you can find miso.exe that is MagicISO command line utility in MagicISO installation directory. 
         * Commands of miso.exe
         * Commands 	Paramenters 	Description
         * -mnt 	[id] Filename 	Mount CD/DVD image to the virtual CD/DVD-ROM which is specified by id.
         * -umnt 	[id] 	Unmount the virtual CD/DVD-ROM which is specified by id
         * -sdrv 	Number 	Set number of virtual drives. 0 to disable.
         * -vlist 	  	List all virtual drives
         * 	


Using MagicISO to mount ISO image on Command Line

You are here: Tutorials > Using MagicISO as mount ISO image on command line.

First, You need to install MagicDisc Virtual CD/DVD-ROM. you can find miso.exe that is MagicISO command line utility in MagicISO installation directory. 
Commands of miso.exe
Commands 	Paramenters 	Description
-mnt 	[id] Filename 	Mount CD/DVD image to the virtual CD/DVD-ROM which is specified by id.
-umnt 	[id] 	Unmount the virtual CD/DVD-ROM which is specified by id
-sdrv 	Number 	Set number of virtual drives. 0 to disable.
-vlist 	  	List all virtual drives


Samples of mounting ISO image

    miso.exe NULL -vlist

    List all of the present virtual CD/DVD driver.
    Please notes: miso.exe ignores the "NULL" parameters.
    Result:

MagicISO Console v3.0.97
Copyright (C) 2002, 2003, 2004, 2005, 2006 MagicISO Inc.

    The following is all of the present virutal CD/DVD drivers.

    [1] C:\DVD.ISO (J:)
    [2] No Media (K:)

    miso.exe NULL -sdrv 3
    Create 3 virtual drives.
    Please notes: miso.exe ignores the "NULL" parameters.


    miso.exe NULL -sdrv 0
    Disable all virtual Drives.
    Please notes: miso.exe ignores the "NULL" parameters.

    miso.exe NULL -mnt j: "c:\backup\1.uif"
    mount "c:\backup\1.uif" to virtual drive j:
    Please notes: miso.exe ignores the "NULL" parameters.

     
    miso.exe NULL -umnt 1
    Unmount the first virtual CD/DVD-drives.
    Please notes: miso.exe ignores the "NULL" parameters.

* This feature was not included in MagicISO version 5.3.0.225 before. Please update miso.exe here. 
         **************/

    }
}
